import { h } from 'vue'
import {
  IconQuanXian,
  IconChengYuan,
  IconJiaoSe,
  IconYiFaBu,
  IconHuiShouZhan,
  IconShouCangJia,
  IconWeiFaBu,
  IconBiaoQian,
  IconBiaoQianZu,
} from '@Assets/fonts/svg'

export default () => {
  let _root = {
    path: 'recyclebin',
    component: { template: '<div><router-view></router-view></div>' },
    meta: { cn: '我的' },
    name: 'recycleBin',
    icon: h(IconQuanXian),
    children: [
      {
        path: 'my',
        icon: h(IconYiFaBu),
        component: () =>
          import(/* webpackChunkName: "recycleBin" */ '@Page/my'),
        meta: { cn: '网盘', breadcrumb: 'my', showEyes: true }, //breadum 是为了让面包屑可以点击,如果不设置则不能点击
        name: 'my',
      },
      {
        path: 'unpub',
        icon: h(IconWeiFaBu),
        component: () =>
          import(/* webpackChunkName: "recycleBin" */ '@Page/unPub/main'),
        meta: { cn: '加密空间', breadcrumb: 'unPub', showEyes: true },
        name: 'unPub',
      },
      // {
      //   path: 'recyclebinlist',
      //   icon: h(IconHuiShouZhan),
      //   component: () =>
      //     import(/* webpackChunkName: "recycleBin" */ '@Page/recycleBin'),
      //   meta: { cn: '备份空间', showEyes: true },
      //   name: 'recycleBinList',
      // },
      {
        path: 'favorites',
        icon: h(IconShouCangJia),
        component: () =>
          import(/* webpackChunkName: "recycleBin" */ '@Page/favorites'),
        meta: { cn: '我的备份', showEyes: true },
        name: 'Favorites',
      },
      {
        path: 'recyclebinlist1',
        icon: h(IconBiaoQian),
        component: () =>
          import(/* webpackChunkName: "recycleBin" */ '@Page/recycleBin1'),
        meta: { cn: '分享给我的', showEyes: true },
        name: 'recycleBinList1',
      },
      {
        path: 'recyclebinlist2',
        icon: h(IconBiaoQian),
        component: () =>
          import(/* webpackChunkName: "recycleBin" */ '@Page/recycleBin2'),
        meta: { cn: '我的分享', showEyes: true },
        name: 'recycleBinList2',
      },
    
      {
        path: 'favoriteslist',
        icon: h(IconJiaoSe),
        component: () =>
          import(/* webpackChunkName: "recycleBin" */ '@Page/favoritesList'),
        meta: {
          cn: '查看备份文件夹',
          disableInMenu: true,
          reSelectkeyName: 'favorites',
        },
        showEyes: true,
        name: 'FavoritesList',
      },
      {
        path: 'mark',
        icon: <IconBiaoQianZu />,
        component: () =>
          import(/* webpackChunkName: "recycleBin" */ '@Page/mark'),
        meta: {
          cn: '好友列表',
        },
        name: 'Mark',
      },
      //IconBiaoQianZu
      // {
      //   path: 'mymarkgroup',
      //   icon: <IconBiaoQianZu />,
      //   component: () =>
      //     import(/* webpackChunkName: "recycleBin" */ '@Page/myMarkGroup'),
      //   meta: {
      //     cn: '好友列表',
      //   },
      //   name: 'myMarkGroup',
      // },
      // {
      //   path: 'orderlist',
      //   icon: <IconBiaoQianZu />,
      //   component: () =>
      //     import(/* webpackChunkName: "recycleBin" */ '@Page/orderList'),
      //   meta: {
      //     cn: '工单列表',
      //   },
      //   name: 'orderList',
      // },
    ],
  }

  return _root
}
